package com.example.xitdemo2.Controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class FormDemoController {
    @GetMapping("form-demo-get")
    public String formDemoGet(String username, String password){
        return "用户名"+username+",密码"+password;
    }

    @PostMapping("form-demo-post")
    public String formDemoPost(String username, String password){
        return "用户名"+username+",密码"+password;
    }
}
